package com.miracle.blog.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miracle.blog.dto.CategoryBackDTO;
import com.miracle.blog.dto.CategoryDTO;
import com.miracle.blog.entity.Category;
import com.miracle.blog.vo.ConditionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CategoryDao extends BaseMapper<Category> {
    List<CategoryDTO> listCategoryDTO();

    List<CategoryBackDTO> listCategoryBackDTO(@Param("current") Long current, @Param("size") Long size, @Param("condition") ConditionVO condition);
}
